flowchart check whether a triangle is valid or not